package com.calvin.grpc.grpcclient.controller;

import com.calvin.grpc.grpcclient.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p> </p>
 *
 * @author Calvin
 * @date 2019/09/17
 * @since
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;


    @GetMapping("/hello")
    public Map sayHello(String name){
        return helloService.getGreeting(name);
    }


}
